package dws_fld

import "server/global"


type DwsFld struct {
	ApiId uint `json:"apiId" form:"apiId" gorm:"column:apiId;comment:接口id;"`

	SrcTbId   uint   `json:"srcTbId" form:"srcTbId" gorm:"column:srcTbId;comment:源数据表id;size:100;"`
	SrcTbName string `json:"srcTbName" form:"srcTbName" gorm:"column:srcTbName;comment:源数据表名称;size:100;"`

	SrcFldId    uint   `json:"srcFldId" form:"srcFldId" gorm:"column:srcFldId;comment:源字段id;size:100;"`
	SrcFldName  string `json:"srcFldName" form:"srcFldName" gorm:"column:srcFldName;comment:源字段名称;size:100;"`
	SrcFldType  string `json:"srcFldType" form:"srcFldType" gorm:"column:srcFldType;comment:源字段类型;size:100;"`
	SrcFldExist uint   `json:"srcFldExist" form:"srcTbExist" gorm:"-"`
	Selected bool `json:"selected" form:"selected" gorm:"-"`

	DwsFldName string `json:"dwsFldName" form:"dwsFldName" gorm:"column:dwsFldName;comment:共享字段名称;size:100;"`

	CreatedBy uint `gorm:"column:created_by;comment:创建者"`
	UpdatedBy uint `gorm:"column:updated_by;comment:更新者"`
	DeletedBy uint `gorm:"column:deleted_by;comment:删除者"`
	global.BaseModel
}


func (DwsFld) TableName() string {
	return "dws_fld"
}
